// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/'
import axios from "axios"
import XEAjax from 'xe-ajax'
import $ from 'jquery'
import ElementUI from 'element-ui'
Vue.use(ElementUI, {
  size: 'mini'
})
import('element-ui/lib/theme-chalk/index.css')
import Mock from './mockJs/index.js'
import '@/permission' // permission control
import 'lib-flexible'
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css'
Vue.use(Mint);
import VXETable from 'vxe-table'
import('vxe-table/lib/index.css')
Vue.use(VXETable);
import VXETablePluginElement from 'vxe-table-plugin-element'
import 'vxe-table-plugin-element/dist/style.css'
VXETable.use(VXETablePluginElement)

import VXETablePluginShortcutKey from 'vxe-table-plugin-shortcut-key'
VXETable.use(VXETablePluginShortcutKey, {
  setting: {
    'table.edit.leftTabMove': 'Shift + Enter',
    'table.edit.rightTabMove': 'Enter', // 将 Tab 键的按键值修改为回车键
  }
})

Vue.prototype.$axios = axios
Vue.prototype.XEAjax = XEAjax

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})

import {
  alertWindow,
  confirmWindow,
  messageWindow
} from "@/utils/messageTip.js";
Vue.prototype.$confirmWindow = confirmWindow;
Vue.prototype.$alertWindow = alertWindow;
Vue.prototype.$messageWindow = messageWindow;
